//
//  CustomCollectionViewCell.m
//  22-QQ音乐MV界面
//
//  Created by dllo on 16/8/13.
//  Copyright © 2016年 DM.C. All rights reserved.
//

#import "CustomCollectionViewCell.h"
#import "Mvlist.h"
#import "UIImageView+DownloadImage.h"

@interface CustomCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *picView;

@property (weak, nonatomic) IBOutlet UILabel *listenNumLabel;
@property (weak, nonatomic) IBOutlet UILabel *songNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *singerLabel;
@property (weak, nonatomic) IBOutlet UILabel *MVDescLabel;

@end


@implementation CustomCollectionViewCell

- (void)layoutSubviews {
    [super layoutSubviews];
    
}

- (void)setMvList:(Mvlist *)mvList {
    _mvList = mvList;
    [_picView asyncDownloadImageWithURL:mvList.picurl completionHandler:^(NSData *data, UIImage *image) {
        
        
    }];
    _listenNumLabel.text = mvList.listennum.stringValue;
    _songNameLabel.text = mvList.mvtitle;
    _singerLabel.text = mvList.singername;
    _MVDescLabel.text = mvList.mvdesc;
}

@end
